#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include "localusersql.h"

#include "../common/singleton.h"

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT
    friend class SingleTon<LoginWidget>;

private:
    explicit LoginWidget(QWidget *parent = nullptr);

public:
    ~LoginWidget();
    void setUsername(QString username);
    QString getUsername() {return Username;}
    void insertUser();

private slots:
    void on_cbname_currentTextChanged(const QString &arg1);

private:
    Ui::LoginWidget *ui;
    QString Username;
};

#endif // LOGINWIDGET_H
